package com.example.nacos.consumer.feign;

import com.example.nacos.consumer.model.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName : OrderFeign
 * @Description : 订单feign接口
 * @Author : tianshuo
 * @Date: 2021-03-23 10:36
 */
@FeignClient(value = "nacos-provider", contextId = "order")
public interface OrderClientFeign {

    @GetMapping("/order/{id}")
    public Order order(@PathVariable("id") Integer id);
}

